import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);

import Home from '@v/Home'
export default new Router({
    routes:[
        {   path:'/',
            component: Home,
            children: [
                // 基础管理
                {path: '/basics/wares/:id', component: () => import('@v/basics/Wares')},
                // 订单管理
                {path: '/order/order/:id', component: () => import('@v/order/Order')},
                // 系统管理
                {path: '/system/company/:id', component: () => import('@v/system/Company')},
                {path: '/system/menu', component: () => import('@v/system/Menu')},
                {path: '/system/power/:id', component: () => import('@v/system/Power')},
                {path: '/system/role/:id', component: () => import('@v/system/Role')},
                {path: '/system/user/:id', component: () => import('@v/system/User')},
                // 支付管理
                {path: '/pay/pays/:id', component: () => import('@v/pay/Pays')},
                {path: '/pay/payinfo/:id', component: () => import('@v/pay/Payinfo')},
                // 图标
                {path: '*', component: () => import('@v/chart/Chart')}
            ]
        }
    ]
})